package com.spzx.manager.service;

import com.github.pagehelper.PageInfo;
import com.spzx.model.dto.product.ProductDto;
import com.spzx.model.entity.product.Product;

/**
 * Project: spzx-parent
 * Package: com.spzx.manager.service
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/3/5 10:46
 */
public interface ProductService {
    //列表查询
    PageInfo<Product> findByPage(Integer page, Integer limit, ProductDto productDto);

    //添加保存
    void save(Product product);

    //修改数据回显
    Product getById(Long id);

    //修改
    void updateById(Product product);

    //删除
    void deleteById(Long id);

    //商品审核
    void updateAuditStatus(Long id, Integer auditStatus);

    //商品上下架
    void updateStatus(Long id, Integer status);
}
